using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;

namespace VkTestApplication
{
    [Activity(Label = "VkTestApplication", MainLauncher = true)]
    public class Activity1 : Activity
    {
        public class DemoVKSdkListener : global::Com.VK.Sdk.VKSdkListener
        {
            public override void OnTokenExpired(global::Com.VK.Sdk.VKAccessToken token)
            {

            }

            public override void OnCaptchaError(global::Com.VK.Sdk.Api.VKError error)
            {

            }

            public override void OnAccessDenied(Com.VK.Sdk.Api.VKError error)
            {

            }
        }

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Main);

            global::Com.VK.Sdk.VKSdk.Initialize(new DemoVKSdkListener(), "VK with Xamarin demo", global::Com.VK.Sdk.VKAccessToken.TokenFromSharedPreferences(this, "VK_ACCESS_TOKEN"));
        }
    }
}


